<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
</head>
<body>
<script>
description('Check focus handler not dispatch blur event');
testInput = document.createElement('input');
document.body.appendChild(testInput);
testInput.type = 'time';

testInput.addEventListener(
    'blur',
    function()
    {
        debug('Entering blur event handler');
        testInput.setAttribute('y', 'y');
        debug('Existing blur event handler');
    },
    false);

testInput.addEventListener(
    'focus',
    function()
    {
        debug('Entering focus event handler');
        testInput.setAttribute('x', 'x');
        debug('Existing focus event handler');
    },
    false);

debug('call focus()');
testInput.focus();
debug('focus() finished');
debug('');

testInput.parentNode.removeChild(testInput);
</script>
</body>
</html>
